import { Button, Form, Input, DatePicker, Checkbox} from "antd";
import React from "react";

const { RangePicker } = DatePicker;

function SearchForm({searchFN, onResetFn}) {
    const onFinish = (values) => {
        searchFN(values)
    };
    const onReset = () => {
        onResetFn()
    }
    return (
        <div>
            <Form 
                layout="inline" 
                onFinish={onFinish} 
                onReset={onReset}
            >
                <Form.Item name="name" label="名称">
                    <Input />
                </Form.Item>
                <Form.Item name="job" label="岗位">
                    <Input />
                </Form.Item>
                <Form.Item>
                    <Button htmlType="submit">搜索</Button>
                    <Button htmlType="reset">重置</Button>
                </Form.Item>
            </Form>
        </div>
    );
}

export default SearchForm;
